package com.hotel.service.userbusiness.imp;


import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hotel.dao.userbusiness.UserBusinessMapper;
import com.hotel.entity.UserBusiness;
import com.hotel.service.userbusiness.UserBusinessService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 *
 */
@Service
public class UserBusinessServiceImpl extends ServiceImpl<UserBusinessMapper, UserBusiness>
        implements UserBusinessService {

    @Resource
    private UserBusinessMapper userBusinessMapper;

    @Override
    public List<UserBusiness> getBasicData(String keyId, String type) {
        List<UserBusiness> list = null;
        LambdaQueryWrapper<UserBusiness> queryWrapper = new LambdaQueryWrapper<UserBusiness>();
        queryWrapper.eq(UserBusiness::getKeyId, keyId);
        queryWrapper.eq(UserBusiness::getType, type);
        queryWrapper.eq(UserBusiness::getDeleteFlag, "0");
        list = userBusinessMapper.selectList(queryWrapper);
        return list;
    }
}




